import request from "@/utils/axios";

// 获取菜单列表
export function GetMenuList(data) {
  return request.post("/auth-backend/menu/list", data);
}

// 新增菜单
export function AddMenu(data) {
  return request.post("/auth-backend/menu/add", data);
}

// 更新菜单
export function UpdateMenu(data) {
  return request.post("/auth-backend/menu/update", data);
}

// 删除菜单
export function DeleteMenu(data) {
  return request.post("/auth-backend/menu/delete", data);
}

// 菜单启用/禁用
export function StatusEnableChange(data) {
  return request.post("/auth-backend/menu/enable", data);
}

// 获取菜单路由
export function GetMenuRouter() {
  return request.post("/auth-backend/menu/router");
}

// 获取菜单树
export function GetMenuTree(data) {
  return request.post("/auth-backend/menu/tree", data);
}

// 获取菜单角色权限点
export function GetMenuRoleTree(data) {
  return request.post("/auth-backend/menu/role/tree", data);
}
